/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pojo;

/**
 *
 * @author HP
 */
public class SachPOJO {
// <editor-fold defaultstate="collapsed" desc="1. Cac Thuoc Tinh">
     private String maSach;
    private String tenSach;
    private float giaBan;
    private int soLuongTon;
    private String maNhaXuatBan;
    private int maTheLoai;

    /**
     * @return the maSach
     */
    public String getMaSach() {
        return maSach;
    }

    /**
     * @param maSach the maSach to set
     */
    public void setMaSach(String maSach) {
        this.maSach = maSach;
    }

    /**
     * @return the tenSach
     */
    public String getTenSach() {
        return tenSach;
    }

    /**
     * @param tenSach the tenSach to set
     */
    public void setTenSach(String tenSach) {
        this.tenSach = tenSach;
    }

    /**
     * @return the giaBan
     */
    public float getGiaBan() {
        return giaBan;
    }

    /**
     * @param giaBan the giaBan to set
     */
    public void setGiaBan(float giaBan) {
        this.giaBan = giaBan;
    }

    /**
     * @return the soLuongTon
     */
    public int getSoLuongTon() {
        return soLuongTon;
    }

    /**
     * @param soLuongTon the soLuongTon to set
     */
    public void setSoLuongTon(int soLuongTon) {
        this.soLuongTon = soLuongTon;
    }

    /**
     * @return the maNhaXuatBan
     */
    public String getMaNhaXuatBan() {
        return maNhaXuatBan;
    }

    /**
     * @param maNhaXuatBan the maNhaXuatBan to set
     */
    public void setMaNhaXuatBan(String maNhaXuatBan) {
        this.maNhaXuatBan = maNhaXuatBan;
    }

    /**
     * @return the maTheLoai
     */
    public int getMaTheLoai() {
        return maTheLoai;
    }

    /**
     * @param maTheLoai the maTheLoai to set
     */
    public void setMaTheLoai(int maTheLoai) {
        this.maTheLoai = maTheLoai;
    }
// </editor-fold>
// <editor-fold defaultstate="collapsed" desc="2. Cac Phuong Thuc Khoi Tao">
/**
 * Phuong Thuc Khoi Tao Mac Dinh
 */
    public SachPOJO(){
        this.maSach="";
        this.tenSach="";
        this.giaBan=0;
        this.soLuongTon=0;
        this.maNhaXuatBan="";
        this.maTheLoai=0;
    }
/**
 * Phuong Thuc Khoi Tao Co Tham So
 */
   public SachPOJO (String maSach,String tenSach,float giaBan,int soLuongTon,String maNhaXuatBan,int maTheLoai){
       this.maSach=maSach;
       this.tenSach=tenSach;
       this.giaBan=giaBan;
       this.soLuongTon=soLuongTon;
       this.maNhaXuatBan=maNhaXuatBan;
       this.maTheLoai=maTheLoai;
   }
/**
 * Phuong Thuc Khoi Tao Sao Chep
 */
     public SachPOJO(SachPOJO sdto){
        this.maSach=sdto.maSach;
        this.tenSach=sdto.tenSach;
        this.giaBan=sdto.giaBan;
        this.soLuongTon=sdto.soLuongTon;
        this.maNhaXuatBan=sdto.maNhaXuatBan;
        this.maTheLoai=sdto.maTheLoai;
    }
// </editor-fold>
}